﻿using Newtonsoft.Json;
using Xunit.Abstractions;

namespace Admin.Crypto.ApplicationTests
{
    public static class ITestOutputHelperExtensions
    {
        public static void WriteJson<T>(this ITestOutputHelper output, T soruce)
        {
            var json = JsonConvert.SerializeObject(soruce, Formatting.Indented);
            output.WriteLine(json);
        }
    }
}
